//
//  ZMToast.swift
//  OnlineClassRoom
//
//  Created by 智蚂优服 on 2020/5/27.
//  Copyright © 2020 智蚂优服. All rights reserved.
//

import Foundation

class ZMToast {
        
    private init() {
    }
    
    /// 显示loading
    class func showActivity(message : String? = nil) {
        if let message = message {
            SGDialog.showLoadMessage(message)
        } else {
            SGDialog.showLoad()
        }
    }
    
    /// 去掉loading
    class func hiddenActivity() {
        SGDialog.dismiss()
//        APPWindow?.hideToastActivity()
    }
    
    /// 显示toast提示; title: 提示文字; img: 提示图片,默认没有
    class func showToast(title: String, img: String = "") {
        SGDialog.showWeakStr(title, withImg: img)
//        APPWindow?.makeToast(title, duration: 1.0, position: .center)
    }
}
